﻿using System;
using System.Runtime.InteropServices;
namespace MyExcelAddIn2003.ComOPHelper
{
    [ComVisibleAttribute(true)]
    public interface IOPHelper
    {
        void SetIDReaderInfo(int iPortNum, int iBaudRate, int iBeginFlag, int iEndFlag, int iStrLen, int iReaderBeginSite, int iReaderIDLen, int iIDCardBeginSite, int iIDCardDataLen, string macName);
        void SetIDReaderInfoByParam(int iPortNum, string strParam, int iBeginFlag, int iEndFlag, int iStrLen, int iReaderBeginSite, int iReaderIDLen, int iIDCardBeginSite, int iIDCardDataLen, string macName);
        void ShowWeightForm();
        void SetSheetToMainForm();
        void SetSheetToMainFormByParam(string strKey);
        void SetPicFTP(bool isEnable, string FTPUrl, string User, string Pwd, string ServerFolder, int Port);
        void SetAdjustRateType(bool isEnable, int iType);
        bool SetWTInfoByParam(int iPortNum, string strParam, int iBeginFlag, int iEndFlag, int iStrLen, int iDataBeginFlag, int iDataLen, int iDenominatorLen, string order, string macName);
        bool SetWTInfoByBaudRate(int iPortNum, int iBaudRate, int iBeginFlag, int iEndFlag, int iStrLen, int iDataBeginFlag, int iDataLen, int iDenominatorLen, string order, string macName);
        void SetPicLocalFolderPath(string FolderPath);
        void SetBar_PLCInfo(int iPortNum, string strParam, string openBarCMD, string stopSendCMD);
        void SendOpenBarCmdByPLC();
        void PlayOkSound();
        void PlayReadCardOKSound();
        void PlayReadCardErrSound();
        void ChangeBackGroundFlag(bool flag);
    }
}
